package cn.example.common.protocol.structs;

import lombok.Data;
import java.util.Map;
import cn.hutool.core.map.MapUtil;
import org.artifact.core.lang.DTO;
@Data
/**
 * 用户信息
 */
public class UserDTO implements DTO{
	/**  */
	private long uid;

	public Map<Object, Object> toMap(Map<Object, Object> map){
		map.put(115792,this.uid);
	    return map;
	}

	public UserDTO forMap(Map<Object, Object> map){
        this.uid = MapUtil.getLong(map ,115792);
        return this;
    }
}